const express = require('express');
const router = express.Router();
const exerciseController = require('../controllers/exerciseController'); // controllers中定义了对应的逻辑

// 定义路由 - 获取和更新运动信息
router.get('/exercise/:username', exerciseController.getExerciseInfo);
router.put('/exercise', exerciseController.updateExerciseInfo);

// 您可以继续定义其他路由，例如用户信息、饮食数据等
// router.get('/user/:id', userController.getUserInfo);

module.exports = router;
